/*
 * Chispa.java
 *
 * Created on 29 de marzo de 2007, 22:27
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package futbol.iu;

import java.awt.Color;

/**
 *
 * @author Jorge
 */
public class Chispa {
    
    private int x;
    private int y;
    private int dx;
    private int dy;
    private Color color;
    
    /** Creates a new instance of Chispa */
    public Chispa(int x, int y, int dx, int dy, Color color) {
        this.x=x;
        this.y=y;
        this.dx=dx;
        this.dy=dy;
        this.color=color;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public int getDX() {
        return dx;
    }

    public int getDY() {
        return dy;
    }    
    
    public Color getColor(){
        return color;
    }
    
    public void mover(){
        x+=dx;
        y+=dy;
        dy+=3;
    }
    
}
